package c.c.c.a.k;

import android.content.Context;
import android.os.Handler;
import android.text.TextUtils;
import c.c.c.a.i.c;
import c.c.c.a.n;

/* compiled from: DeviceIdTask */
public class b extends a {
    public b(Handler handler, long j, long j2) {
        super(handler, j, j2);
    }

    public void run() {
        String b = n.c.b.b();
        Context context;
        c cVar;
        if (TextUtils.isEmpty(b) || "0".equals(b)) {
            long j = this.c;
            if (j > 0) {
                this.a.postDelayed(this, j);
            } else {
                this.a.post(this);
            }
            context = n.a;
            cVar = n.d;
            return;
        }
        n.a().a.edit().putString("device_id", b).apply();
        context = n.a;
        cVar = n.d;
    }
}
